
<script type="text/javascript" charset="utf-8">
	var datagrid;
	$(function() {

		datagrid = $('#datagrid').datagrid({
			url : '/idcpost/ungraphdevice',
			title : '',
			iconCls : 'icon-save',
			pagination : true,
			pagePosition : 'bottom',
			pageSize : 20,
			pageList : [ 20, 30, 40 ],
			fit : true,
			fitColumns : false,
			nowrap : false,
			border : false,
			idField : 'id',
			//checkOnSelect : false,
			//selectOnCheck : true,
			frozenColumns : [ [ {
				title : '编号',
				field : 'id',
				width : 50,
				sortable : true,
				checkbox : true
			}, {
				title : '唯一标识',
				field : 'oid',
				width : 150,
				sortable : true
			} ] ],
			columns : [ [{
				title : '主机名',
				field : 'hostname',
				sortable : true,
				width : 200
			}, {
				title : 'ip地址合并',
				field : 'iplist',
				width : 200
			}, {
				title : '连接状态',
				field : 'connstatus',
				width : 50
			}, {
				title : '注册时间',
				field : 'date_join',
				width : 250
			} ] ]
		});

	});

</script>

<div class="easyui-layout" fit="true">
    <form method="post">
        <div region="center" border="false" style="padding:5px;background:#fff;border:1px solid #ccc;">
            <table id="datagrid"></table>
        </div>

        <div region="south" border="false" style="text-align:left;padding:5px 0;">
            <table class="tableForm">
                <tr>
                    <th>菜单名称</th>
                    <td><input name="menuname" style="width:155px;"></td>
                    <th>排序</th>
                    <td><input name="menuseq" class="easyui-numberspinner"
                               data-options="min:0,max:999,editable:false,required:true,missingMessage:'请选择菜单排序'" value="10"
                               style="width:150px;"/></td>
                </tr>
                <tr>
                    <th>上级菜单</th>
                    <td><input name="pid" style="width:155px;"/>
                    </td>
                    <th>菜单图标</th>
                    <td><input name="menuicon" style="width:150px;"/>
                    </td>
                </tr>
            </table>
        </div>

    </form>
</div>
